{% extends 'base.html' %}
{% block title %}Job details{% endblock %}

{% block content %}
<h1>Job details</h1>
<a href="{% url jobs.views.list_jobs %}">Back to listing</a> |
<a href="{% url jobs.views.edit_job key=object.key %}">Edit</a> |
<a href="{% url jobs.views.delete_job key=object.key %}">Delete</a>

<table>
  <tr><th>Name:</th> <td>{{ object.name }}</td></tr>
  <tr><th>Description:</th> <td> {{ object.description }}</td></tr>
  <tr><th>Company:</th> <td> <a href="{{ object.employer.get_absolute_url }}">{{ object.employer }}</a></td></tr>
  <tr><th>Status:</th> <td>{% if object.is_open %}Still open{% endif %}{% if not object.is_open %}Closed{% endif %}</td></tr>
</table>
{% endblock %}
